<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-12-21 09:41:27
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-12-21 09:50:50
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>输入语句</title>
</head>
<body>
    <script>
        // prompt('提示用户的内容','输入框内部默认的内容');
        alert(prompt('请输入你的年龄','18'));
        // 用户输入完以后，点击确定，会弹出输入的内容

        
    </script>
</body>
</html>